<?php
class  main extends top
{
	function index(){
		$page = spClass('m_page');
		$article = spClass('m_article');

		$this->page1 = $page->find('cat_id = 44');
		$this->article1 = $article->findAll('cat_id = 49','add_time DESC','id,title,add_time',5);
		$this->article2 = $article->findAll('cat_id = 45','add_time DESC','id,title,add_time',5);
		

		//查找所有的额友情链接
		//category的id为59
		$url = spClass('m_url');
		$this->url1 = $url->findAll(array('cat_id'=>61,'visible'=>1),'weight DESC');

		$this->url2 = $url->findAll(array('cat_id'=>59,'visible'=>1),'weight DESC');

	}	
}
